<template>
  <div class="bottom-navigation">
    <router-link to="/home" class="nav-item" active-class="active">
      <el-icon><House /></el-icon>
      <span>博物馆主界面</span>
    </router-link>
    <router-link to="/map" class="nav-item" active-class="active">
      <el-icon><Location /></el-icon>
      <span>博物地图指引</span>
    </router-link>
    <router-link to="/floor-plan" class="nav-item" active-class="active">
      <el-icon><Document /></el-icon>
      <span>平面图指引</span>
    </router-link>
    <router-link to="/audio-guide" class="nav-item" active-class="active">
      <el-icon><Microphone /></el-icon>
      <span>语音导航</span>
    </router-link>
    <router-link to="/facilities" class="nav-item" active-class="active">
      <el-icon><Collection /></el-icon>
      <span>设施查询</span>
    </router-link>
    <router-link to="/collections" class="nav-item" active-class="active">
      <el-icon><Picture /></el-icon>
      <span>藏品展示</span>
    </router-link>
  </div>
</template>

<script setup lang="ts">
import { House, Location, Document, Microphone, Collection, Picture } from '@element-plus/icons-vue'
</script>

<style lang="scss" scoped>
.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    width: 16.66%;
    transition: all 0.3s ease;

    .el-icon {
      font-size: 20px;
      margin-bottom: 4px;
    }

    span {
      font-size: 12px;
    }

    &.active {
      color: #8b5a2b;
    }

    &:hover {
      color: #a67c52;
    }
  }
}
</style>
